# from setuptools import find_packages, setup

# package_name = 'five_robot_arms_python_pkg'

# setup(
#     name=package_name,
#     version='0.0.0',
#     packages=find_packages(exclude=['test']),
#     data_files=[
#         ('share/ament_index/resource_index/packages',
#             ['resource/' + package_name]),
#         ('share/' + package_name, ['package.xml']),
#     ],
#     install_requires=['setuptools'],
#     zip_safe=True,
#     maintainer='whf',
#     maintainer_email='f19584512968@qq.com',
#     description='TODO: Package description',
#     license='Apache-2.0',
#     tests_require=['pytest'],
#     entry_points={
#         'console_scripts': [
#         ],
#     },
# )

from setuptools import find_packages, setup
import os
from glob import glob

package_name = 'five_robot_arms_python_pkg'

setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        # 新增以下内容安装launch文件
        (os.path.join('share', package_name, 'launch'), 
        glob('launch/*.launch.py')),
        # 安装资源文件（如有）
        (os.path.join('share', package_name, 'config'),
        glob('config/*.yaml')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='whf',
    maintainer_email='f19584512968@qq.com',
    description='五自由度机械臂控制包',
    license='Apache-2.0',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'robot_arms_node = five_robot_arms_python_pkg.robot_arms_node:main',
        ],
    },
)